<?php
class ErrorForm extends Form{
	function ErrorForm(){
		Form::Form('ErrorForm');
		//standard method # 
		header('HTTP/1.0 200 OK'); 
		//CGI method # 
		header('Status: 200 OK');
	}
	
	function draw(){
		if(StaticCache::notExistCache('error_page',604800)){//thời gian cache 1 tuần 24*7*3600 =604800;
			StaticCache::startCache();
			
			global $display;
			$display->add('category_id',CGlobal::$curCategory);
			$display->add('base_url',WEB_ROOT);
			$display->output('404_error');
			
			StaticCache::endCache();
		}
	}
}
?>